package com.atguigu.jxc.dao;

import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * @author Sanmier
 * @create 2020-12-29 15:00
 */
@Component
public interface PurchaseListGoodsDao {


    //保存新增进货单
    void savePurchaseList(PurchaseList purchaseList);


    //保存新进货商品
    void savePurchaseListGoods(PurchaseListGoods purchaseListGoods);


    //条件查询
    List<PurchaseList> getSearchList(@Param("purchaseNumber")String purchaseNumber, @Param("supplierId") Integer supplierId,@Param("state") Integer state,@Param("sTime") String sTime,@Param("eTime") String eTime);


    //查询进货单商品信息
    List<PurchaseListGoods> getGoodsList(@Param("purchaseListId") Integer purchaseListId);


    //删除进货单商品
    void deletePurchaseListGoods(@Param("purchaseListId") Integer purchaseListId);


    //删除进货单
    void deletePurchaseList(@Param("purchaseListId") Integer purchaseListId);


    //支付结算（修改进货单付款状态）
    void updatePurchaseList(@Param("purchaseListId") Integer purchaseListId);
}
